package com.starnet.yarnmonitor.security.mapper;

import com.starnet.yarnmonitor.security.entity.SysPermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author 陈佳豪
 * @since 2022-05-16
 */
@Mapper
public interface SysPermissionMapper extends BaseMapper<SysPermission> {
    List<SysPermission> selectListByUser(int userId);
    List<SysPermission> selectListByPath(String url);
}
